package material.encapsulation_algorithm.hook;

public class BeverageTestDriver {
    public static void main(String[] args) {
        TeaWithHook teaHook = new TeaWithHook();//创建一杯茶
        CoffeeWithHook coffeeHook = new CoffeeWithHook();//创建一杯咖啡
        System.out.println("开始制茶");
        teaHook.prepareRecipe();
        System.out.println("开始制作咖啡");
        coffeeHook.prepareRecipe();
    }
}
